package com.matt.docpro.service;

import com.matt.docpro.mapper.FeedbackMapper;
import com.matt.docpro.model.Feedback;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * FeedbackService
 * Created by on 2024/03/06.
 */
@Service
public class FeedbackService {
    @Autowired
    FeedbackMapper feedbackMapper;

    public List<Feedback> getAll() {
        return feedbackMapper.getAll();
    }

    public Feedback getById(String id) {
        return feedbackMapper.getById(id);
    }

    public void update(Feedback feedback) {
        feedbackMapper.update(feedback);
    }

    public void insert(Feedback feedback) {
        feedbackMapper.insert(feedback);
    }

    public void deleteById(String id) {
        feedbackMapper.deleteById(id);
    }
}
